﻿#region zh-CHS 2006 - 2007 DemoSoft 团队 | en 2006 - 2007 DemoSoft Team

//     NOTES
// ---------------
//
// This file is a part of the MMOSE(Massively Multiplayer Online Server Engine) for .NET.
//
//                              2006-2007 DemoSoft Team
//
//
// First Version : by H.Q.Cai - mailto:caihuanqing@hotmail.com

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published
 *   by the Free Software Foundation; either version 2.1 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

#region zh-CHS 包含名字空间 | en Include namespace
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
#endregion

namespace Demo.Mmose.Core.Creature.General
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <returns></returns>
    public delegate TimeSpan RegenRateHandler( BaseCreature from );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="target"></param>
    /// <returns></returns>
    public delegate bool AllowBeneficialHandler( BaseCreature from, BaseCreature target );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="target"></param>
    /// <returns></returns>
    public delegate bool AllowHarmfulHandler( BaseCreature from, BaseCreature target );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="target"></param>
    /// <param name="minSkill"></param>
    /// <param name="maxSkill"></param>
    /// <returns></returns>
    public delegate bool SkillCheckTargetHandler( BaseCreature from, object target, double minSkill, double maxSkill );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="minSkill"></param>
    /// <param name="maxSkill"></param>
    /// <returns></returns>
    public delegate bool SkillCheckLocationHandler( BaseCreature from, double minSkill, double maxSkill );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="target"></param>
    /// <param name="chance"></param>
    /// <returns></returns>
    public delegate bool SkillCheckDirectTargetHandler( BaseCreature from, object target, double chance );
    /// <summary>
    /// 
    /// </summary>
    /// <param name="from"></param>
    /// <param name="skill"></param>
    /// <param name="chance"></param>
    /// <returns></returns>
    public delegate bool SkillCheckDirectLocationHandler( BaseCreature from, double chance );
}
#endregion